package structure;


public class blk extends group{
	

	private static final long serialVersionUID = -1669700391361582619L;
	
	private int _r = 0;
	private int _c = 0;
	
	public blk(int id) { 
		_id = id;
		_r = (id) / 3;
		_c = (id) % 3;

	}
	
    public int getR() { return _r; }
    public int getC() { return _c; }
	
    @Override
    public boolean intersects(group g) {
        if (g instanceof row) {
            return ((row)g).intersects(this);
        } else if (g instanceof col) {
            return ((col)g).intersects(this);
        } else if (g instanceof blk) {
            return false;
        } else {
            return super.intersects(g);
        }
    }
	
	

}